package com.asset.dispoal.file.document.domain.db.mapper;

import com.asset.dispoal.file.document.domain.db.entity.Document;
import com.asset.dispoal.file.document.domain.db.entity.DocumentParam;
import com.asset.dispoal.file.document.domain.db.entity.DocumentType;
import com.asset.dispoal.file.document.domain.db.entity.DocumentTypeItem;
import com.asset.dispoal.file.document.dto.DocumentPageRequest;
import com.asset.dispoal.file.document.dto.DocumentPageResponse;
import com.asset.dispoal.file.document.dto.DocumentTypePageRequest;
import com.asset.dispoal.file.document.dto.DocumentTypePageResponse;
import org.apache.ibatis.annotations.Mapper;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;

@Mapper
public interface DocumentMapper {

    Integer insertDocumentType(DocumentType documentType);

    Integer deleteType(String id);

    Integer delete(String id);

    Integer insert(Document document);

    Integer insertParam(DocumentParam param);

    Integer deleteParam(String id);

    int queryTypePageCount(DocumentTypePageRequest request);

    List<DocumentTypePageResponse> queryTypePage(Page<DocumentTypePageRequest> page);

    int queryPageCount(DocumentPageRequest request);

    List<DocumentPageResponse> queryPage(Page<DocumentPageRequest> page);

    DocumentTypePageResponse getTypeById(String id);

    Integer insertDocumentTypeItem(DocumentTypeItem documentTypeItem);
}
